package com.zhongc.advance.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.zhongc.advance.info.User;

public interface UserDao {
	/**
	 * 根据UserId 查询
	 * @param userId
	 * @return
	 */
    public User queryUserByUserId(@Param("userId")String userId);

    /**
     * 登陆
     * @param userName
     * @param passWord
     * @return
     */
    public User login(@Param("userName")String userName, @Param("passWord")String passWord);

    /**
     *
     * @param status 用户状态
     * @return
     */
    public List<User> queryUser(@Param("status")String... status);

    /**
     * 根据用户名查询
     * @param userName
     * @return
     */
    public User queryUserByUsername(@Param("userName") String userName);

    /**
     * 注册用户
     * @param user
     * @return
     */
    public int register(User user);

    /**
     * 更新资料
     * @param user
     * @return
     */
    public int updateUser(User user);
}